package com.idealighter.game.mail.manager;

import com.google.inject.Singleton;

import com.idealighter.game.mail.convert.MailConvert;
import com.idealighter.game.mail.dto.MailDto;
import com.idealighter.game.mail.message.ResMailListMsg;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.server.db.datadb.generate.domain.MailDomain;

import java.util.List;

@Singleton
public class MailMsgMsg {

  /**
   * 发送邮件列表-通知.
   * 
   */
  public ResMessage resMailList(List<MailDomain> mailDomains) {
    List<MailDto> dtos = MailConvert.INSTANCE.toMailDtos(mailDomains);

    ResMailListMsg msg = new ResMailListMsg();
    msg.setMails(dtos);

    return msg;
  }
}
